<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Class: SalesClicExporter::Document::GoogleSpreadsheets</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="../../_index.html">Index (G)</a> &raquo; 
    <span class='title'><span class='object_link'><a href="../../SalesClicExporter.html" title="SalesClicExporter (module)">SalesClicExporter</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Document.html" title="SalesClicExporter::Document (module)">Document</a></span></span>
     &raquo; 
    <span class="title">GoogleSpreadsheets</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: SalesClicExporter::Document::GoogleSpreadsheets
  
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><span class='object_link'><a href="Base.html" title="SalesClicExporter::Document::Base (class)">Base</a></span></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><span class='object_link'><a href="Base.html" title="SalesClicExporter::Document::Base (class)">Base</a></span></li>
          
            <li class="next">SalesClicExporter::Document::GoogleSpreadsheets</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">lib/sales_clic_exporter/google_spreadsheets.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>
Describes a Google Spreadsheets document
</p>


  </div>
</div>
<div class="tags">
  
</div>
  <h2>Constant Summary</h2>
  
    <dl class="constants">
      
        <dt id="Default_cell_index-constant" class="">Default_cell_index =
          <div class="docstring">
  <div class="discussion">
    <p>
Par défaut on commence à écrire sur la seconde colone. A la différence
de Excel, le premier index est 1 (au lieu de 0)
</p>


  </div>
</div>
<div class="tags">
  
</div>
        </dt>
        <dd><pre class="code"><span class='integer val'>2</span>
</pre></dd>
      
        <dt id="Extension-constant" class="">Extension =
          <div class="docstring">
  <div class="discussion">
    <p>
Valeur qui va servir dans une route d&#8217;un controller à générer un
document Google Spreadsheets
</p>


  </div>
</div>
<div class="tags">
  
</div>
        </dt>
        <dd><pre class="code"><span class='string val'>'google_spreadsheets'</span>
</pre></dd>
      
    </dl>
  


  
  
  
  

  
    <h2>
      Instance Method Summary
      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
    </h2>

    <ul class="summary">
      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Suppression du document depuis Google Docs (vers la corbeille).
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#freezepane-instance_method" title="#freezepane (instance method)">- (Object) <strong>freezepane</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Freezepane factice.
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (GoogleSpreadsheets) <strong>initialize</strong>(filename, args = {}) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
A new instance of GoogleSpreadsheets.
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#key-instance_method" title="#key (instance method)">- (Object) <strong>key</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#newline-instance_method" title="#newline (instance method)">- (Object) <strong>newline</strong>(size = nil) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Rajout d&#8217;une ligne vide.
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#permanent_destroy-instance_method" title="#permanent_destroy (instance method)">- (Object) <strong>permanent_destroy</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Suppression du document depuis Google Docs (PERMANENTE).
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#save-instance_method" title="#save (instance method)">- (Object) <strong>save</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Sauvegarde du contenu.
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#title_1-instance_method" title="#title_1 (instance method)">- (Object) <strong>title_1</strong>(value) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
On ne définit pas les méthodes title_x comme Spreadsheet ne supporte pas
les titres.
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#title_2-instance_method" title="#title_2 (instance method)">- (Object) <strong>title_2</strong>(value) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#title_3-instance_method" title="#title_3 (instance method)">- (Object) <strong>title_3</strong>(value) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#url-instance_method" title="#url (instance method)">- (Object) <strong>url</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#worksheet_name-instance_method" title="#worksheet_name (instance method)">- (Object) <strong>worksheet_name</strong> </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Nom de la 1ère worksheet.
</p>
</div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#worksheet_name%3D-instance_method" title="#worksheet_name= (instance method)">- (Object) <strong>worksheet_name=</strong>(name) </a>
    

    
  </span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'><p>
Réglage du nom de la 1ère worksheet.
</p>
</div></span>
  
</li>

      
    </ul>
  


  
  
  
  
  
  
  
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="SalesClicExporter::Document::Base (class)">Base</a></span></h3>
  <p class="inherited"><span class='object_link'><a href="Base.html#h_table-instance_method" title="SalesClicExporter::Document::Base#h_table (method)">#h_table</a></span>, <span class='object_link'><a href="Base.html#line-instance_method" title="SalesClicExporter::Document::Base#line (method)">#line</a></span>, <span class='object_link'><a href="Base.html#v_table-instance_method" title="SalesClicExporter::Document::Base#v_table (method)">#v_table</a></span>, <span class='object_link'><a href="Base.html#write-instance_method" title="SalesClicExporter::Document::Base#write (method)">#write</a></span></p>
<div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><span class='object_link'><a href="" title="SalesClicExporter::Document::GoogleSpreadsheets (class)">GoogleSpreadsheets</a></span></tt>) <strong>initialize</strong>(filename, args = {}) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
A new instance of GoogleSpreadsheets
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 17</span>

<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='filename identifier id'>filename</span><span class='comma token'>,</span> <span class='args identifier id'>args</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
  <span class='comment val'># Cas username/password</span>
  <span class='if if kw'>if</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:username</span><span class='rbrack token'>]</span> <span class='andop op'>&amp;&amp;</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:password</span><span class='rbrack token'>]</span>
    <span class='@username ivar id'>@username</span> <span class='assign token'>=</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:username</span><span class='rbrack token'>]</span>
    <span class='password identifier id'>password</span>  <span class='assign token'>=</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:password</span><span class='rbrack token'>]</span>
    <span class='@google ivar id'>@google</span>   <span class='assign token'>=</span> <span class='GoogleSpreadsheet constant id'>GoogleSpreadsheet</span><span class='dot token'>.</span><span class='login identifier id'>login</span><span class='lparen token'>(</span><span class='@username ivar id'>@username</span><span class='comma token'>,</span> <span class='password identifier id'>password</span><span class='rparen token'>)</span>
  <span class='comment val'># Token passé en paramètre</span>
  <span class='elsif elsif kw'>elsif</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:access_token</span><span class='rbrack token'>]</span>
    <span class='token identifier id'>token</span>     <span class='assign token'>=</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:access_token</span><span class='rbrack token'>]</span>
    <span class='@google ivar id'>@google</span>   <span class='assign token'>=</span> <span class='GoogleSpreadsheet constant id'>GoogleSpreadsheet</span><span class='dot token'>.</span><span class='login_with_oauth identifier id'>login_with_oauth</span><span class='lparen token'>(</span><span class='token identifier id'>token</span><span class='rparen token'>)</span>
  <span class='elsif elsif kw'>elsif</span> <span class='args identifier id'>args</span><span class='dot token'>.</span><span class='blank? fid id'>blank?</span>
    <span class='@google ivar id'>@google</span>   <span class='assign token'>=</span> <span class='GoogleSpreadsheet constant id'>GoogleSpreadsheet</span><span class='dot token'>.</span><span class='saved_session identifier id'>saved_session</span>
  <span class='else else kw'>else</span>
    <span class='raise identifier id'>raise</span> <span class='string val'>&quot;Erreur lors de l'initialisation du module GoogleSpreadsheets&quot;</span>
  <span class='end end kw'>end</span>

  <span class='@filename ivar id'>@filename</span>          <span class='assign token'>=</span> <span class='filename identifier id'>filename</span> <span class='orop op'>||</span> <span class='string val'>&quot;Export SalesClic&quot;</span>

  <span class='comment val'># Google Doc template, that contain styles</span>
  <span class='@template_doc ivar id'>@template_doc</span>      <span class='assign token'>=</span> <span class='@google ivar id'>@google</span><span class='dot token'>.</span><span class='spreadsheet_by_key identifier id'>spreadsheet_by_key</span><span class='lparen token'>(</span><span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:google_doc_template_id</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='args identifier id'>args</span><span class='lbrack token'>[</span><span class='symbol val'>:google_doc_template_id</span><span class='rbrack token'>]</span>

  <span class='comment val'># If we can use a template we use it to create the file. Else we just create a new doc</span>
  <span class='@doc ivar id'>@doc</span>               <span class='assign token'>=</span> <span class='@template_doc ivar id'>@template_doc</span> <span class='question op'>?</span> <span class='@template_doc ivar id'>@template_doc</span><span class='dot token'>.</span><span class='duplicate identifier id'>duplicate</span><span class='lparen token'>(</span><span class='@filename ivar id'>@filename</span><span class='rparen token'>)</span> <span class='colon op'>:</span> <span class='@google ivar id'>@google</span><span class='dot token'>.</span><span class='create_spreadsheet identifier id'>create_spreadsheet</span><span class='lparen token'>(</span><span class='@filename ivar id'>@filename</span><span class='rparen token'>)</span>

  <span class='comment val'># Ligne en cours d'écriture, afin de récupérer le dernier index écrit</span>
  <span class='@current_row_index ivar id'>@current_row_index</span> <span class='assign token'>=</span> <span class='integer val'>1</span> <span class='comment val'># Attention on démarre à la ligne 1</span>
  
  <span class='comment val'># Réglage du nom de la première feuille du classeur</span>
  <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='title identifier id'>title</span>        <span class='assign token'>=</span> <span class='@filename ivar id'>@filename</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
  
</div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="destroy-instance_method">
  
    - (<tt>Object</tt>) <strong>destroy</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Suppression du document depuis Google Docs (vers la corbeille)
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


77
78
79</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 77</span>

<span class='def def kw'>def</span> <span class='destroy identifier id'>destroy</span>
  <span class='@doc ivar id'>@doc</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="freezepane-instance_method">
  
    - (<tt>Object</tt>) <strong>freezepane</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Freezepane factice
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


67
68
69</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 67</span>

<span class='def def kw'>def</span> <span class='freezepane identifier id'>freezepane</span>
  <span class='self self kw'>self</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="key-instance_method">
  
    - (<tt>Object</tt>) <strong>key</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


86
87
88</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 86</span>

<span class='def def kw'>def</span> <span class='key identifier id'>key</span>
  <span class='@doc ivar id'>@doc</span><span class='dot token'>.</span><span class='key identifier id'>key</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="newline-instance_method">
  
    - (<tt>Object</tt>) <strong>newline</strong>(size = nil) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Rajout d&#8217;une ligne vide
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


59
60
61
62
63
64</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 59</span>

<span class='def def kw'>def</span> <span class='newline identifier id'>newline</span><span class='lparen token'>(</span><span class='size identifier id'>size</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span><span class='rparen token'>)</span>
  <span class='comment val'># Incrémentation du nombre de lignes dans le document</span>
  <span class='@current_row_index ivar id'>@current_row_index</span> <span class='opasgn op'>+=</span> <span class='integer val'>1</span>

  <span class='self self kw'>self</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="permanent_destroy-instance_method">
  
    - (<tt>Object</tt>) <strong>permanent_destroy</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Suppression du document depuis Google Docs (PERMANENTE)
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


82
83
84</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 82</span>

<span class='def def kw'>def</span> <span class='permanent_destroy identifier id'>permanent_destroy</span>
  <span class='@doc ivar id'>@doc</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='true true kw'>true</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="save-instance_method">
  
    - (<tt>Object</tt>) <strong>save</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Sauvegarde du contenu
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


72
73
74</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 72</span>

<span class='def def kw'>def</span> <span class='save identifier id'>save</span>
  <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='save identifier id'>save</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="title_1-instance_method">
  
    - (<tt>Object</tt>) <strong>title_1</strong>(value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
On ne définit pas les méthodes title_x comme Spreadsheet ne supporte pas
les titres. Chaque méthode va en fait être utilisée comme une simple
ligne. Les titres 1 et 2 commencent à la première colone, tandis que le 3
est aligné avec le reste du texte
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


97
98
99</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 97</span>

<span class='def def kw'>def</span> <span class='title_1 identifier id'>title_1</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='rparen token'>)</span>
  <span class='line identifier id'>line</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='comma token'>,</span> <span class='symbol val'>:index</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="title_2-instance_method">
  
    - (<tt>Object</tt>) <strong>title_2</strong>(value) 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


101
102
103</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 101</span>

<span class='def def kw'>def</span> <span class='title_2 identifier id'>title_2</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='rparen token'>)</span>
  <span class='line identifier id'>line</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='comma token'>,</span> <span class='symbol val'>:index</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="title_3-instance_method">
  
    - (<tt>Object</tt>) <strong>title_3</strong>(value) 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


105
106
107</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 105</span>

<span class='def def kw'>def</span> <span class='title_3 identifier id'>title_3</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='rparen token'>)</span>
  <span class='line identifier id'>line</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='comma token'>,</span> <span class='symbol val'>:index</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='Default_cell_index constant id'>Default_cell_index</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="url-instance_method">
  
    - (<tt>Object</tt>) <strong>url</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


90
91
92</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 90</span>

<span class='def def kw'>def</span> <span class='url identifier id'>url</span>
  <span class='@doc ivar id'>@doc</span><span class='dot token'>.</span><span class='human_url identifier id'>human_url</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="worksheet_name-instance_method">
  
    - (<tt>Object</tt>) <strong>worksheet_name</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Nom de la 1ère worksheet
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


54
55
56</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 54</span>

<span class='def def kw'>def</span> <span class='worksheet_name identifier id'>worksheet_name</span>
  <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='title identifier id'>title</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="worksheet_name=-instance_method">
  
    - (<tt>Object</tt>) <strong>worksheet_name=</strong>(name) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Réglage du nom de la 1ère worksheet
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


49
50
51</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/sales_clic_exporter/google_spreadsheets.rb', line 49</span>

<span class='def def kw'>def</span> <span class='worksheet_name= identifier id'>worksheet_name=</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
  <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='title identifier id'>title</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on 05/16/11 10:59:52 by 
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
  0.6.7 (ruby-1.8.7).
</div>

  </body>
</html>